<?php

class Core_Form_Admin_Setting_Input extends Form
{
	function init()
	{
		$this -> addChild('radio', 'editor', array(
			'label' => 'Editor',
			'required' => true,
			'multiOptions' => array(
				'textarea' => 'None',
				'tiny' => 'Tiny',
				'basic' => 'Basic',
				'full' => 'Full',
			),
			'value' => 'textarea',
			'desc' => 'Select a default WYSIWYG editor. ',
		));

		$this -> addChild('radio', 'allow_html', array(
			'label' => 'Allow HTML',
			'multiOptions' => array(
				'No',
				'Yes'
			),
			'value' => '1',
			'desc' => 'Set this to True if you would like to allow HTML on your site. Note that even with this setting enabled by default we only allow certain HTML tags we feel that will not harm your site. You can add more HTML tags by modifying the setting sAllowedHtmlTags which can be found in this setting group.',
		));

		$this -> addChild('textarea', 'allow_tags', array(
			'label' => 'Allow HTML Tags',
			'value'=>'<a><em><ul><strong><span><div><img><bold><italic><quote>',
			'desc' => 'We provide a set of HTML tags we feel will give your users the ability to format their content without harming your site.'
		));

		$this -> addChild('radio', 'clean_html', array(
			'label' => 'Clean Up XHTML',
			'multiOptions' => array(
				'1' => 'Yes',
				'0' => 'No'
			),
			'value' => '1',
			'desc' => 'Cleanup XHTML by html purifier to avoid problem about security.',
		));

		$this -> addChild('radio', 'parse_link', array(
			'label' => 'Clean Up XHTML',
			'multiOptions' => array(
				'1' => 'Yes',
				'0' => 'No'
			),
			'value' => '1',
			'desc' => 'Set to True if you would like to automatically replace URL strings to anchor links..',
		));

		$this -> addChild('group', 'buttons');

		$this -> buttons -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');
	}

}
